package org.zoomdev.zoom.validator.impl;

import org.zoomdev.zoom.validator.Validator;

public class NullValidator implements Validator {

    private final String message;

    public NullValidator(String message) {
        this.message = message;
    }

    @Override
    public boolean isValid(Object value) {
        return value != null;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
